package com.hkts.management.message.msg.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hkts.management.common.utils.Result;
import com.hkts.management.message.msg.entity.MsgRecord;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zy
 * @since 2021-05-10
 */
public interface IMsgRecordService extends IService<MsgRecord> {

    IPage<MsgRecord> selectPage(Page<MsgRecord> page, MsgRecord msgRecord);

    List<MsgRecord> selectList(MsgRecord msgRecord);

    Result<List<MsgRecord>> getRecordList(String id, Integer size,Integer sysType);
    Result<List<MsgRecord>> getRecordsByTime(LocalDateTime startTime, LocalDateTime endTime, Integer sysType);

    Result<Object> changeRecordStatus(String id);

    int getRecordCount(String messageId);
}